<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <link rel="shortcut icon" href="/cwp/favicon.ico" type="image/x-icon" />
    <title>安防管理-安防告警</title>
    <!--引入CSS文件-->
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/list.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/table.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/paging.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/tabs.css"/>
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/btn.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/taqs.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/step.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/css/styles/components-css/form.css" />
    <!--引入bootstrap CSS文件-->
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/bootstrap-3.3.5-dist/css/bootstrapModel.css" />
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/bootstrap-3.3.5-dist/css/bootstrap-theme.min.css"/>
    <!--日历控件样式-->
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css"/>
    <!--表单验证样式--->
    <link rel="stylesheet" type="text/css" href="../../../assets/lib/formValidator/style/validator.css"/>

</head>
<body>
<!--头部文件 开始-->
<div id="header"></div>
<!--头部文件 结束-->
<div class="wrapper">
    <!--左侧菜单 开始-->
    <div id="left-menu"></div>
    <!--左侧菜单 结束-->
    <!--右侧内容 开始-->
    <div class="right-container">
        <div class="right-scroll">
            <div class="t-list">
                <div class="t-list-title">
                    <h2>首页 &gt; 安防告警</h2>
                </div>

                <div class="t-tabs">
                    <ul id="myTabs" class="t-tabs-items">
                        <li class="active"><a href="#tab1" data-toggle="tab">未处理</a></li>
                        <li><a href="#tab1" data-toggle="tab">处理中</a></li>
                        <li><a href="#tab1" data-toggle="tab">已处理</a></li>
                    </ul>
                    <div id="myTabContent" class="tab-content">
                        <div class="tab-pane fade in active" id="tab1">
                            <form id="frmSearch">
                                <!--安防告警列表-->
                                <div class="t-list-search t-columns-2">

                                    <ul class="t-columns-group">
                                        <li class="timegroup">
                                            <label>起止日期</label>
                                            <div>
                                                <div>
                                                    <input class="form_date_start bg-date" value="" placeholder="开始时间" readonly id="startApplyTime"/>
                                                </div>
                                                <span>~</span>
                                                <div>
                                                    <input class="form_date_end bg-date" value="" placeholder="结束时间" readonly id="endApplyTime"/>
                                                </div>
                                            </div>
                                        </li>
                                        <!-- 时间组 -->
                                        <li>
                                            <label>&nbsp;</label>
                                            <div>
                                                <a class="t-btn" id="btnSearchAlarm">
                                                    <i class="icon-search"></i>
                                                    查询
                                                </a>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </form>
                            <div class="t-list-btns">
                                <p>请求记录</p>
                                <span id="warningEventListTotal"></span>
                                <div class="hide">
                                    <a class="t-btn t-btn-blue" id="btnMaintenanceNew" >新增</a>
                                </div>
                            </div>

                            <div class="t-list-result">
                                <!-- 表格 -->
                                <table class="t-table" id="warningEventList">
                                    <thead>
                                    <tr>
                                        <th>告警编号</th>
                                        <th>类别</th>
                                        <th>来源</th>
                                        <th>描述</th>
                                        <th>时间</th>
                                        <th>状态</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody></tbody>
                                </table>
                                <div class="loading-container"></div>
                                <!-- 分页 -->
                                <div class="pagination" id="warningEventListPagination"></div>
                            </div>
                        </div>
                    </div>
                </div>



            </div>
        </div>
    </div>
</div>
<!--版权-->
<div id="copyright"> </div>

<!--新建-->
<div class="modal fade" id="modalMaintenanceNew" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" >新增</h4>
            </div>
            <form id="frmMain">
                <div class="modal-body">
                    <div class="t-columns-1">
                        <!-- 检索字段 -->
                        <ul class="t-columns-group">
                            <li>
                                <label><span class="t-tip-verification">*</span>类别</label>
                                <div>
                                    <select id="addWaringType" name="warningType">
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div><div id="addWaringTypeTip"></div></div>
                            </li>
                            <li>
                                <label><span class="t-tip-verification">*</span>告警级别</label>
                                <div>
                                    <div class="t-stars" >
                                        <select type="text" name="warningLevel" id="addLevel">
                                            <option value="">请选择</option>
                                            <option value="0">低</option>
                                            <option value="1">中</option>
                                            <option value="2">高</option>
                                            <option value="3">紧急</option>
                                        </select>
                                    </div>
                                </div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div><div id="addLevelTip"></div></div>
                            </li>
                            <li>
                                <label><span class="t-tip-verification">*</span>栋</label>
                                <div>
                                    <select id="buildingNo" onchange="selectbuildChild();">
                                        <option value="">请选择</option>
                                    </select>
                                </div>
                            </li>
                            <li class="verify">
                                <label></label>
                                <div><div id="buildingNoTip"></div></div>
                            </li>
                            <li>
                                <label>层</label>
                                <div>
                                    <select id="buildingChild">
                                    </select>
                                </div>
                            </li>
                            <!--<li>-->
                            <!--<label>房间</label>-->
                            <!--<div>-->
                            <!--<select id="buildingRoom">-->
                            <!--</select>-->
                            <!--</div>-->
                            <!--</li>-->
                            <li>
                                <label>选择设备</label>
                                <div>
                                    <select id="devices" name="deviceId">
                                    </select>
                                </div>
                            </li>
                            <li class="width-all">
                                <label><span class="t-tip-verification">*</span>故障描述</label>
                                <div>
                                    <textarea id="addDetailDesc" name="eventDescribe"></textarea>
                                </div>
                            </li>
                            <li class="verify-width-all">
                                <label></label>
                                <div><div id="addDetailDescTip"></div></div>
                            </li>
                            <!-- 时间组 -->
                        </ul>
                    </div>
                </div>

                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="button" class="btn btn-primary" onclick="saveWarningEvent()">保存</button>
                </div>
            </form>
        </div>
    </div>
</div>

<!--详情-->
<div class="modal fade" id="modalMaintenanceDetails" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>

                <h4 class="modal-title">安防告警详情</h4>

            </div>
            <div class="modal-body">
                <!--告警基本信息-->
                <div class="t-columns-2">
                    <ul class="t-columns-group">
                        <li>
                            <label>设备类别：</label>
                            <div id="deviceType"></div>
                        </li>
                        <li>
                            <label>告警级别：</label>
                            <div id="messageLevel"></div>
                        </li>
                        <li>
                            <label>告警编号：</label>
                            <div id="alarmNumber"></div>
                        </li>
                        <li>
                            <label>处理状态：</label>
                            <div>
                                <div><i class="t-tag-del" id="deviceState"></i></div>
                            </div>
                        </li>
                        <li class="width-all" style="padding: 0;">
                            <label>告警位置：</label>
                            <div id="devicePostion"></div>
                        </li>
                        <li class="width-all" style="padding: 0;">
                            <label>告警描述：</label>
                            <div id="warningDescribe"></div>
                        </li>
                        <li class="width-all" style="padding: 0;">
                            <label>处理报告：</label>
                            <div id="handleOpinion">未完成</div>
                        </li>
                    </ul>
                </div>
                <!--告警责任人信息-->
                <div class="responsibe clearfix">
                    <div class="fl clearfix">
                        <div class="fl responsibe-photo icon-user2"></div>
                        <div class="fl responsibe-info">
                            <div class="responsibe-name">暂无记录</div>
                            <div class="responsibe-role">暂无记录</div>
                        </div>
                    </div>
                    <div class="fr responsibe-phone">
                        <i class="icon-phone"></i>
                        <span>无</span>
                    </div>
                </div>
                <!--告警流程信息-->
                <div class="line1">
                    <div class="line">
                        <span class="end conp"></span>
                    </div>
                    <div class="clearfix mb10">
                        <span class="com_squ"></span>
                        <div class="bubble fr" id="test">
                            <dl class="com_dt">
                                <dt class="clearfix">
                                    通知
                                    <span class="fr comFont_color" id="noticeTime">2016-07-12 13:03:39</span>
                                </dt>
                                <dd class="comFont_color"  id="noticeName">
                                    安防管理员：<span></span>
                                    <br/>
                                    安保人员：全员
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="clearfix mb10">
                        <span class="com_squ conp"></span>
                        <div class="bubble fr comp">
                            <dl class="com_dt">
                                <dt class="clearfix">
                                    抢单
                                    <span class="fr comFont_color" id="responseTime"></span>
                                </dt>
                                <dd class="comFont_color" id="responseName">
                                    暂无记录
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="clearfix mb10">
                        <span class="com_squ conp"></span>
                        <div class="bubble fr comp">
                            <dl class="com_dt">
                                <dt class="clearfix">
                                    处理
                                    <span class="fr comFont_color" id="handlerTime"></span>
                                </dt>
                                <dd class="comFont_color" id="handlerName">
                                    暂无记录
                                </dd>
                            </dl>
                        </div>
                    </div>
                    <div class="clearfix mb10">
                        <span class="com_squ conp"></span>
                        <div class="bubble fr comp">
                            <dl class="com_dt">
                                <dt class="clearfix">
                                    <span id="completeResultTip">未完成</span>
                                    <span class="fr comFont_color" id="completeTime"></span>
                                </dt>
                                <dd class="comFont_color" id="completeResult">
                                    暂无记录
                                </dd>
                            </dl>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="dataTmpl">
    {{each beans}}
    <tr>
        <td>{{$value.alarmNumber}}</td>
        <td>{{$value.deviceName}}</td>
        <td>{{$value.eventFromSystem | eventFromSystemFormat}}</td>
        <td>{{$value.eventDescribe}}</td>
        <td>{{$value.applyTime}}</td>
        <td>{{$value.eventProcessStatus | eventProcessStatusFormat}}</td>
        <td>
            <a class="t-btn t-btn-sm t-btn-blue t-btn-deal" data-id="{{$value.warningEventId}}" onclick="detailSelect('{{$value.warningEventId}}')">详情</a>
        </td>
    </tr>
    {{/each}}
</script>

<!--jQuery库脚本-->
<!--非IE8浏览器-->
<!--[if !(IE 8)]><!--><script type="text/javascript" src="../../../assets/lib/jquery/jquery.min.js"></script><!--<![endif]-->
<!--IE8浏览器-->
<!--[if IE 8]><script type="text/javascript" src="../../../assets/lib/jquery/jquery-ie8.min.js"></script><![endif]-->
<script type="text/javascript" src="../../../assets/lib/jQuery-slimScroll-1.3.8/jquery.slimscroll.min.js"></script>
<script charset="utf-8" src="../../../assets/common/loadHeaderAndCopyright.js"></script>
<script charset="utf-8" src="../../../assets/lib/bootstrap-3.3.5-dist/js/bootstrap.js"></script>
<!--bootsrtap日历控件脚本-->
<script charset="utf-8" src="../../../assets/lib/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js"></script>
<script charset="utf-8" src="../../../assets/lib/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script charset="utf-8" src="../../../assets/lib/bootstrap-datetimepicker-master/js/initDatetimepicker.js"></script>
<!--表单验证-->
<script charset="utf-8" src="../../../assets/lib/formValidator/formValidator.js"></script>
<script charset="utf-8" src="../../../assets/lib/formValidator/formValidatorRegex.js"></script>
<!--分页脚本-->
<script charset="utf-8" src="../../../assets/lib/pagination/1.2.1/jquery.pagination.js"></script>
<script charset="utf-8" src="../../../assets/lib/artTemplate/template.js"></script>
<script charset="utf-8" src="../../../assets/common/loaderTableTmpl.js"></script>
<script charset="utf-8" src="../../../assets/common/ajaxPoster.js"></script>
<script charset="utf-8" src="../../../assets/common/centerModal.js"></script>
<script charset="utf-8" src="../../../assets/lib/tipModal/js/tipModal.js"></script>
<!--安防预警-->
<script charset="utf-8" src="../../../js/emergencyScheduling/eventManagement/eventManagement.js"></script>
</body>
</html>